<?php
App::import('Sanitize');
class Message extends AppModel{
    
    function getMessages($id)
    {
        return $this->find('all', array ( 'conditions' => array('taskID' => $id)));
    }

}